@extends('admin.layout.index')
@section('title', '编辑回复')
@section('header', '编辑回复')
@section('con')
	<div class="col-lg-12">
    <div class="panel panel-default">
        <div class="panel-body">
            <div class="row">
                <div class="col-lg-6 col-lg-offset-3">
                    @foreach($res as $k=>$v)
                    <form role="form" method="get" action="/admin/answer/update">
                        <input type="hidden" name="id" value="{{$v->id}}">
                        
                        <div class="form-group">
                            <label>评论内容</label>
                            <textarea rows="15" class="form-control" name="content">{{$v->content}}</textarea>
                        </div>
                        <div class="form-group">
                            <input type="radio" name="status" value="0" @if( $v->status===0) checked @endif>显示
                            <input type="radio" name="status" value="1" @if( $v->status===1) checked @endif>屏蔽
                            <br><br>
                            <button class="btn btn-warning disabled" type="button">赞成<h4>{{$v->pass}}</h4>票</button>
                            <button class="btn btn-primary disabled" type="button">反对<h4>{{$v->answer}}</h4>票</button>
                            <button class="btn btn-primary disabled" type="button">被感谢<h4>{{$v->thank}}</h4>票</button>
                        </div>
                        <button class="btn btn-default" type="submit">修改</button>
                    </form>
                    @endforeach
                </get             
            </div>
            <!-- /.row (nested) -->
        </div>
        <!-- /.panel-body -->
    </div>
    <!-- /.panel -->
</div>
@endsection